package com.tanggh.action;

import java.sql.Timestamp;
import java.util.Date;

import org.springframework.beans.factory.annotation.Autowired;

import com.sun.org.apache.bcel.internal.generic.NEW;
import com.tanggh.entity.PersonalCer;
import com.tanggh.service.PersonalCerService;

public class PersonalCerAction extends GenericAction{
	private static final long serialVersionUID = 1L;
	
	@Autowired
	private PersonalCerService personalCerService;
	
	@Override
	public String execute() throws Exception {
		String title = getString("title");
		String description = getString("description");
		String contact = getString("contact");
		String mobileNumber = getString("mobileNumber");
		String qq = getString("qq");
		String phone = getString("phone");
		/*PersonalCer p = new PersonalCer();
		p.setTitle("北京企业寻建造师挂靠");
		p.setCityCode("01000");
		p.setJobCategoryCode("02555");
		p.setContact("tanggaohong");
		p.setUpdateDate(new Timestamp(new Date().getTime()));
		p.setCreateDate(new Timestamp(new Date().getTime()));
		p.setDescription("description");
		p.setQq("63495645");
		p.setMobileNumber("15988889999");
		p.setFromUrl("http://www.baidu.com");
		p.setIp("192.168.168.0");
		p.setSalaryId(1);*/
//		personalCerService.save(personalCer);
		
		return super.execute();
	}
}
